import { createApp } from 'vue'
import App from './App.vue'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import './styles/index.scss'
import { createPinia } from 'pinia'
import router from './router'
import '@/premission'

import persistedstate from 'pinia-plugin-persistedstate'

const app = createApp(App)

app.use(ElementPlus)
const pinia = createPinia()
pinia.use(persistedstate)
app.use(pinia)
app.use(router)

app.mount('#app')